package com.iot.websocket.message;

import com.iot.common.enums.BizCode;
import com.iot.websocket.WebSocketMessage;

public class CommonMessage extends WebSocketMessage {

    private String clientNo;

    public CommonMessage() {
        this.setBizCode(BizCode.COMMON.getCode());
    }

    public static CommonMessage getInstance(String topic, String clientNo, String result){
        CommonMessage instance = new CommonMessage();
        instance.clientNo = clientNo;
        instance.setTopic(topic);
        instance.setData(result);
        return instance;
    }

    public String getClientNo() {
        return this.clientNo;
    }
}
